package com.chen.ssm.service.impl;

import com.chen.ssm.dao.AircraftDao;
import com.chen.ssm.entity.Aircraft;
import com.chen.ssm.service.AircraftService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * com.chen.ssm.service.impl
 * 作者      : 陈晓
 * 描述      :
 * 创建日期  : 2017/12/13
 * 修改日期  :
 */
@Service("aircraft")
public class IAircraftService implements AircraftService {

  @Resource
  private AircraftDao aircraftDao;

  public int deleteByPrimaryKey(Integer id) {
    return aircraftDao.deleteByPrimaryKey(id);
  }

  public int insert(Aircraft record) {
    return aircraftDao.insert(record);
  }

  public int insertSelective(Aircraft record) {
    return aircraftDao.insertSelective(record);
  }

  public int updateByPrimaryKeySelective(Aircraft record) {
    return aircraftDao.updateByPrimaryKeySelective(record);
  }

  public int updateByPrimaryKey(Aircraft record) {
    return aircraftDao.updateByPrimaryKey(record);
  }

  public Integer getCount(Aircraft aircraft) {
    return aircraftDao.getCount(aircraft);
  }

  public Aircraft selectByPrimaryKey(Integer id) {
    return aircraftDao.selectByPrimaryKey(id);
  }

  public List<Aircraft> getAircraftList(Aircraft aircraft) {
    return aircraftDao.getAircraftList(aircraft);
  }
}
